package hpu.e4_demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import hpu.e4_demo.common.Result;
import hpu.e4_demo.entity.Yuyue;

import java.util.List;

public interface YuyueService extends IService<Yuyue> {

    Result<Yuyue> addYuyue(Yuyue yuyue);

    Result<String> cancelYuyue(Integer id);

    Result<List<Yuyue>> getYuyueList(Integer status);

    Result<List<Yuyue>> getYuyueByCheliangId(Integer cheliangId);

    Result<List<Yuyue>> getYuyueByUserId(Integer userId);

    Result<String> approveYuyue(Integer id);

    Result<String> rejectYuyue(Integer id);
}